home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Games / MAME / src / machine / kangaroo.c < prev    next >
C/C++ Source or Header  |  2000-04-04  |  809b  |  35 lines

  1. /* CHANGELOG
  2.         97/04/xx        renamed the arabian.c and modified it to suit
  3.                         kangaroo. -V-
  4. */
  5.  
  6. /***************************************************************************
  7.  
  8.   machine.c
  9.  
  10.   Functions to emulate general aspects of the machine (RAM, ROM, interrupts,
  11.   I/O ports)
  12.  
  13. ***************************************************************************/
  14.  
  15. #include "driver.h"
  16.  
  17. static int kangaroo_clock=0;
  18.  
  19.  
  20. /* I have no idea what the security chip is nor whether it really does,
  21.    this just seems to do the trick -V-
  22. */
  23.  
  24. READ_HANDLER( kangaroo_sec_chip_r )
  25. {
  26. /*  kangaroo_clock = (kangaroo_clock << 1) + 1; */
  27.   kangaroo_clock++;
  28.   return (kangaroo_clock & 0x0f);
  29. }
  30.  
  31. WRITE_HANDLER( kangaroo_sec_chip_w )
  32. {
  33. /*  kangaroo_clock = val & 0x0f; */
  34. }
  35.